<?php
/**
 * Created by PhpStorm.
 * User: 杨永安
 * Date: 2017/3/29
 * Time: 17:00
 */

namespace app\api\controller;

class Index
{
    public function poi()
    {
        $db = db('emc_poi');
        $res['code'] = $db->count();
        if ($res['code']) {

            $res['msg'] = $db->select();
        } else {
            $res['msg'] = "没有符合结果";
        }
        return json($res);
    }


    public function js()
    {


        ?>

        var a=123;

        <?php

        exit;
    }


}